package com.ysx.student.zhangqingrong.com.ysx.day4;

import java.util.Scanner;

/**
 * @author A
 */
public class Test10 {
    public static void main(String[] args) {
        while (true) {
            // 键盘录入;
            Scanner sc = new Scanner(System.in);
            System.out.println("请输入：");
            int anInt = sc.nextInt();


            if (anInt % 2 == 1 && anInt % 3 == 2 && anInt % 5 == 4 && anInt % 6 == 5 && anInt % 7 == 0) {
                System.out.println(anInt);
                break;
            }

        }

    }

}

